package operatori;

import Interpretor.Context;
import arbori.Nod;

public abstract class Operator extends Nod {
	
/*
	public double calcul() {
		if ((fDrept == null) || (fStang == null))
			System.exit(0);
		return calcul(fDrept.calcul(), fStang.calcul());
	}

	public String toString() {
		return concatTermeni(fStang.toString(), fDrept.toString());

	}

	public abstract double calcul(double aux1, double aux2);
*/
	
	public abstract String concatTermeni(String aux1, String aux2);
	public void interpret(Context cont) {
		cont.actual(this);
	}

}
